package com.stone.design.practice.dpandpx;

import android.content.Context;
import android.util.Log;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 6/20/18 22:10
 * @email redsstone@163.com
 */
public class GetDpTest {

    public void getDensity(Context context) {
        float f = context.getResources().getDisplayMetrics().density;
        Log.e("Stone", "getDensity(GetDpTest.java:16)-->>"+f);
    }
}
